package com.songcan.oauth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.songcan.model.oauth.SysUser;
import com.songcan.oauth.vo.UserVO;

import java.util.Date;
import java.util.List;


public interface SysUserService extends IService<SysUser> {

    List<String> selectByDeptRole(Long userId);

    IPage<UserVO> selectByUserPage(Page page,String keyWord);


    void  deleteByUser(Long userId);

    UserVO selectByDetail(Long userId);

    void addUser(String userName, String password, Long deptId, String phone, Integer sex, String avatar, Long roleId, String remark, Date birthDay,String name,Integer locked,Integer enabled,Long positionId);

    void updateUser(Long userId,String userName, String password, Long deptId, String phone, Integer sex, String avatar, Long roleId, String remark, Date birthDay,String name,Integer locked,Integer enabled,Long positionId);
}
